package net.xdclass.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Classname CouponRecordVo
 * @Description TODO
 * @Date 2022/4/24 14:38
 * @Created by sunhao
 */
@Data
public class CouponRecordVo {

  private Long id;

  /**
   * 优惠券id
   */
  @JsonProperty(value = "coupon_id")
  private Long couponId;


  /**
   * 使用状态  可用 NEW,已使用USED,过期 EXPIRED;
   */
  @JsonProperty(value = "use_state")
  private String useState;

  /**
   * 用户昵称
   */
  @JsonProperty(value = "user_name")
  private String userName;

  /**
   * 优惠券标题
   */
  @JsonProperty(value = "coupon_title")
  private String couponTitle;

  /**
   * 开始时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
  @JsonProperty(value = "start_time")
  private Date startTime;

  /**
   * 结束时间
   */
  @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",locale = "zh",timezone = "GMT+8")
  @JsonProperty(value = "end_time")
  private Date endTime;

  /**
   * 订单id
   */
  @JsonProperty(value = "order_id")
  private Long orderId;

  /**
   * 抵扣价格
   */
  private BigDecimal price;

  /**
   * 满多少才可以使用
   */
  @JsonProperty(value = "condition_price")
  private BigDecimal conditionPrice;

}
